package com.dingup.mock.dao.writing;


import com.dingup.mock.bean.base.ArticleOrder;
import com.dingup.mock.bean.writing.TsWritingQuestion;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by yanggavin on 16/5/4.
 */
@Mapper
public interface TsWritingQuestionsMapper {
    Boolean add(TsWritingQuestion tsWritingQuestion);
    Boolean update(TsWritingQuestion tsWritingQuestion);
    Boolean delete(TsWritingQuestion tsWritingQuestion);
    List<TsWritingQuestion> getQuestions(Map<String, Object> param);
    TsWritingQuestion getQuestion(Map<String, Object> param);
    TsWritingQuestion getById(Integer id);
    List<TsWritingQuestion> getList();
    Boolean exist(TsWritingQuestion article);
    List<TsWritingQuestion> getAllSubjectName();

    List<ArticleOrder> getTPORealTestSubjectName();
}
